﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WebUserControlCalendar.ascx.cs" Inherits="WebUserControlCalendar" %>
<div class='calendar'>  
    <asp:Calendar ID="Calendar1" runat="server"
        backcolor="#ffffff" width="250px" height="200px" 
        font-size="12px" font-names="Arial" borderwidth="2px"
        bordercolor="#000000" nextprevformat="shortmonth" 
        daynameformat="firsttwoletters"
        onselectionchanged="Calendar1_SelectionChanged"
        SelectionMode="DayWeekMonth"
        SelectMonthText="**"
        SelectWeekText="*">
        <WeekendDayStyle BackColor="#fafad2" ForeColor="#ff0000" />
        <TodayDayStyle ForeColor="White" BackColor="Black"></TodayDayStyle>
        <NextPrevStyle Font-Size="12px" Font-Bold="True" ForeColor="#333333">
        </NextPrevStyle>
        <DayHeaderStyle Font-Size="12px" Font-Bold="True"></DayHeaderStyle>
        <TitleStyle Font-Size="14px" Font-Bold="True" BorderWidth="2px"
        ForeColor="#000055"></TitleStyle>
        <OtherMonthDayStyle ForeColor="#CCCCCC"></OtherMonthDayStyle>
    </asp:Calendar>
    
    <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
    
    <br />Start:
    <asp:DropDownList ID="DropDownList1" runat="server" 
        DataSourceID="SqlDataSource1" DataTextField="Time_Start"
        DataValueField="Time_Start">
    </asp:DropDownList>
    
    <br />End:
    <asp:DropDownList ID="DropDownList2" runat="server"
        DataSourceID="SqlDataSource1" DataTextField="Time_End"
        DataValueField="Time_End">
    </asp:DropDownList>
    
    <br />Description:
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="Data Source=NBTARN;Initial Catalog=WebDB;Integrated Security=True" 
        ProviderName="System.Data.SqlClient" 
        SelectCommand="SELECT [Time_Start], [Time_End] FROM [TimePeriod]">
    </asp:SqlDataSource>
    
    <br />
    <asp:TextBox ID="TextBox1" runat="server" Height="111px" Width="249px"></asp:TextBox>
    
    <br />
    
    <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button ID="Button1" runat="server" Text="Submit" />
    
</div>
    <div class='calendar2'>
        <asp:Literal ID="Literal1" runat="server"></asp:Literal>
    </div>
</p>


        